package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.domain.Dish;
import com.example.domain.other.DishFlavor;
import com.example.dto.DishCategoryDto;
import com.example.dto.DishDto;
import com.example.mapper.DishMapper;
import com.example.service.DishFlavorSerivce;
import com.example.service.DishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class DishServiceImpl extends ServiceImpl<DishMapper, Dish> implements DishService {
    @Autowired
    private DishMapper dishMapper;

    @Override
    public IPage<DishCategoryDto> getPage(IPage<DishCategoryDto> iPage, String name) {
        IPage<DishCategoryDto> page = dishMapper.getPage(iPage, name);
        return page;
    }
}
